package com.jml.代理模式.五期.手写jdk动态代理.proxy.impl;


import com.jml.代理模式.五期.手写jdk动态代理.proxy.MyExtJdkInvocationHandler;
import com.jml.代理模式.五期.手写jdk动态代理.service.OrderService;
import java.lang.reflect.Method;

public class $Proxy0 implements OrderService {

    private MyExtJdkInvocationHandler h;

    public $Proxy0(MyExtJdkInvocationHandler h) {
        this.h = h;
    }

    @Override
    public void order() throws Throwable {
        // 如何获取真实目标方法呢
        Method orderMethod = OrderService.class.getMethod("order", new Class[]{});
        this.h.invoke(this, orderMethod, null);
    }
}
